package com.csun.cmny.provider.dto;

import com.csun.cmny.provider.validator.OmcConvertAddValidator;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-05-18 13:07
 * @Description: the class convert dto
 */
@Data
public class ConvertDto implements Serializable {

    private static final long serialVersionUID = -2471235127383611211L;

    /**
     * 志愿者Id
     */
    @NotNull(message = "{volunteer.id.null}",
            groups = {OmcConvertAddValidator.class})
    private Long volunteerId;

    /**
     * 礼品Id
     */
    @NotNull(message = "{gift.id.null}",
            groups = {OmcConvertAddValidator.class})
    private Long giftId;

    /**
     * 兑换类型
     */
    @NotNull(message = "{convert.type.null}",
            groups = {OmcConvertAddValidator.class})
    @NotEmpty(message = "{convert.type.null}",
            groups = {OmcConvertAddValidator.class})
    private String convertType;

    /**
     * 收货地址
     */
    private String address;

    /**
     * 物流公司
     */
    private String lgsCompany;

    /**
     * 物流单号
     */
    private String lgsNumber;

    /**
     * 说明
     */
    private String remark;

    /**
     * 组织Id
     */
    private Long groupId;
}
